package com.cn.ftp;

import java.net.SocketException;

/**
 * FUN: ftp客户端
 * 
 * @author sushy
 * @date 2016-3-23
 */
public class FtpClient extends org.apache.commons.net.ftp.FTPClient {

	private static int timeout = 180000;

	public FtpClient() {
		super();
		// 默认3分钟超时
		setDefaultTimeout(timeout);
	}

	public void resetSoTimeout() {
		try {
			setSoTimeout(timeout);
		} catch (SocketException e) {
		}
	}

}
